package me.flyray.bsin.facade.service;

import me.flyray.bsin.domain.entity.EmbeddingModel;

import java.io.IOException;
import java.util.Map;

/**
 * 搜索引擎服务
 */

public interface ElasticsearchService {

    /**
     * 创建索引
     * @param requestMap
     */
    void createIndex(Map<String, Object> requestMap) throws IOException;

    /**
     * 删除索引
     * @param requestMap
     */
    void deleteIndex(Map<String, Object> requestMap) throws IOException;

    /**
     * 获取索引
     * @param requestMap
     */
    Map<String, Object> getIndex(Map<String, Object> requestMap) throws IOException;

    void add(Map<String, Object> requestMap) throws IOException;

    void edit(Map<String, Object> requestMap) throws IOException;

    void delete(Map<String, Object> requestMap) throws IOException;

    Map<String, Object> search(Map<String, Object> requestMap) throws IOException;

}
